﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<div class="modal-dialog x-modal-dialog" style="width: 660px; margin-top: 100px;">
  <div class="modal-content">
  
    <div class="modal-header">
      <button type="button" class="close" data-dismiss="modal">
        <span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
      </button>
      <h4 class="modal-title">Edit&nbsp;-&nbsp;Profile</h4>
    </div>
    
    <form class="form-horizontal ms-form" role="form" method="POST" action="${ctx.host}/profile/edit" data-validate="true">
    
      <input type="hidden" name="_method" value="PATCH">
      <input type="hidden" name="role" value="supervisor" />
      <input type="hidden" name="id" value="${supervisor.id}" />
      
      <div class="modal-body">
        
        <div class="form-group x-form-group payment-type">
          <label class="col-xs-4 control-label">Name</label>
          <div class="col-xs-6 pull-left">
            <input type="text" name="name" class="form-control" value="${supervisor.name}" placeholder="Name" data-validate="required" />
          </div>
        </div>
        
        <div class="form-group x-form-group payment-type">
          <label class="col-xs-4 control-label">Telephone</label>
          <div class="col-xs-6 pull-left">
            <input type="text" name="telephone" class="form-control" value="${supervisor.telephone}" placeholder="Telephone" data-validate="required" />
          </div>
        </div>
        
      </div>
        
      <div class="modal-footer">
        <div class="form-group ihg-form-group text-center">
          <button type="submit" class="btn btn-success btn-shadow btn-shadow-success x-btn">Submit</button>
          <button type="button" class="btn btn-default btn-shadow btn-shadow-default x-btn" data-dismiss="modal">Cancel</button>
        </div>
      </div>
      
    </form>
  </div>
</div>